package com.jiandaoshou.base;

import android.support.annotation.IdRes;
import android.view.View;
import android.widget.Toast;

/**
 * Created by Administrator on 2016/9/26.
 */

public abstract class BaseActivity extends BaseViewActivity{

    protected final void showToast(String text){
        Toast.makeText(this, text, Toast.LENGTH_SHORT).show();
    }

    protected <T extends View> T $(@IdRes int id) {
        return (T) findViewById(id);
    }

}
